const menu = {
  state:{
    style:'#000033',//{background:'#409EFF',fill:'#fff',activeBackground:'orange',activeFill:'#fff'},//主题风格
    isCollapse:false,//sessionStorage.getItem("isCollapse")||false,//是否展开
    isFooter:false,//是否显示底部栏
  },
  mutations:{
    //菜单背景颜色
    setStyle(state,style){
      state.style = style;
    },
    //菜单栏是否展开
    setIsCollapse(state,collapse){
      state.isCollapse = collapse;
    },
  },
  actions:{
    //菜单是否展开
    setIsCollapse({commit},collapse){
      commit("setIsCollapse",collapse);
    },
  },
};
export default menu;
